﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<DR.WebUI.Models.Account.LogOnModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Home Page
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h3>Welcome to Developer Report System</h3>
    <% if (!Page.User.Identity.IsAuthenticated)
       {%>
        <% using (Html.BeginForm("LogOn", "Account"))
           { %>
        <%: Html.ValidationSummary(true, "Login was unsuccessful. Please correct the errors and try again.")%>
        <div id="login-form"> 
            <div style="margin:0; padding:0; display:inline;">
                <table style="width:400px;"> 
                    <tr> 
                        <td align="right">
                            <%: Html.LabelFor(m => m.UserName)%>
                        </td> 
                        <td align="left">
                            <%: Html.TextBoxFor(m => m.UserName, new { @class = "logOnTextBox" })%>
                            <%: Html.ValidationMessageFor(m => m.UserName)%>
                        </td> 
                    </tr> 
                    <tr> 
                        <td align="right">
                            <%: Html.LabelFor(m => m.Password)%>
                        </td> 
                        <td align="left">
                            <%: Html.PasswordFor(m => m.Password, new { @class = "logOnTextBox" })%>
                            <%: Html.ValidationMessageFor(m => m.Password)%>
                        </td> 
                    </tr> 
 
                    <tr> 
                        <td></td> 
                        <td align="left"> 
        
                        </td> 
                    </tr> 
                    <tr> 
                        <td align="left"> 
                                
                        </td> 
                        <td align="right"> 
                            <input type="submit" value="Log On" />
                        </td> 
                    </tr> 
                </table>    
            </div> 
        </div>
   <% } %>
   <%}%>
   <% else
       {%>
       <br />
       <span class="mainText">Our system will help you leverage your time:</span>
       <ul id="aboutUsList"  class="mainText">
        <li>- multiuser system</li>
        <li>- reporting periods</li>
        <li>- efficient management of tasks</li>
        <li>- friendly user interface</li>
       </ul>
       <br />
       <span  class="mainText">Try it in action!</span>
   <%
       }%>
</asp:Content>
